package com.example.administrator.compileapp.bean;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.example.administrator.compileapp.activity.OtherStartActivity;

/**
 * Created by Administrator on 2017.5.5.
 */

public class OtherStartEntity {
    private String webName;
    private String webUrl;

    public OtherStartEntity(String webName, String webUrl) {
        this.webName = webName;
        this.webUrl = webUrl;
    }
   public  void onClickItem(Context context){
       Intent intent = new Intent(context, OtherStartActivity.class);
       intent.putExtra("webUrl",webUrl);
       intent.putExtra("title",webName);
       context.startActivity(intent);
   }
    public String getWebName() {
        return webName;
    }

    public void setWebName(String webName) {
        this.webName = webName;
    }

    public String getWebUrl() {
        return webUrl;
    }

    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
    }
}
